<%@ page contentType="text/html;charset=UTF-8" language="java"  isELIgnored="false" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>部门列表</title>
</head>
<body>
    <table>
        <tr>
            <td>部门Id</td>
            <td>部门名称</td>
            <td>操作</td>
        </tr>
        <s:iterator value="#departments">
        <tr>
            <td>${id}</td>
            <td><a href="${pageContext.request.contextPath}/department_list?parentId=${id}">${name}</a></td>
            <td>
                <a href="${pageContext.request.contextPath}/department_delete?id=${id}">删除</a>
                <a href="${pageContext.request.contextPath}/department_editPrepare?id=${id}&parentId=${parentId}">编辑</a>
            </td>
        </tr>
        </s:iterator>
    </table>
    <a href="${pageContext.request.contextPath}/department_addPrepare?parentId=${parentId}">添加部门</a>
</body>
</html>
